package com.wing.productionPlan.dao;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.wing.productionPlan.model.entity.QualityTestingRecordDetail;
import com.wing.productionPlan.model.response.QualityTestingRecordDetailVO;
import com.wing.qualityTesting.model.response.QualityDetailRecordInfoVo;
import com.wing.qualityTesting.model.response.QualityDetailValueInfoVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * 质检记录详情表-Dao
 *
 * @author
 */
@Mapper
public interface QualityTestingRecordDetailDao extends BaseMapper<QualityTestingRecordDetail> {

    /**
     * 列表-app
     *
     * @param params
     *
     * @return
     */
    List<QualityTestingRecordDetailVO> list4app(@Param("params") Map<String, Object> params);

    /**
     * 分页列表-app
     *
     * @param page
     * @param params
     *
     * @return
     */
    List<QualityTestingRecordDetailVO> list4app(@Param("page") Page<QualityTestingRecordDetailVO> page, @Param("params") Map<String, Object> params);

    /**
     * 详情-app
     *
     * @param id
     *
     * @return
     */
    QualityTestingRecordDetailVO get4appById(Long id);

    Map<Integer,Object> getProcessAmountAndQualifiedQuantity(@Param("processId") Long processId);

    List<QualityTestingRecordDetailVO> getQualityTestingRecordDetail(@Param("qualityTestingRecordId") Long qualityTestingRecordId);


    QualityDetailRecordInfoVo getDetailRecordValue(@Param("taskId") Long taskId,@Param("recordDetailId") Long recordDetailId);


    List<QualityDetailValueInfoVo> getProcessCheckProject(@Param("bookId") Long bookId,@Param("processId")Long processId);

    List<QualityDetailValueInfoVo> getProcessCheckValueList(@Param("testingRecordDetailId") Long testingRecordDetailId);



}
